package com.antgroup.seckill.business.goods.service;

import com.antgroup.seckill.business.common.vo.request.UserLoginRequest;
import com.antgroup.seckill.business.common.vo.response.RespBean;
import com.antgroup.seckill.business.goods.model.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangxy
 * @since 2024-07-25
 */
public interface IUserService extends IService<User> {


    /**
     * 用户登录
     *
     * @param request
     * @param httpServletRequest
     * @param response
     * @return
     */
    RespBean doLogin(UserLoginRequest request, HttpServletRequest httpServletRequest, HttpServletResponse response);



    /**
     * 通过redis获取用户信息
     *
     * @param request
     * @param response
     * @param cookieUUid
     * @return
     */
    User getUserByCookie(HttpServletRequest request,HttpServletResponse response,String cookieUUid);

}

